package com.atguigu.serviceedu.client;

import com.atguigu.serviceedu.client.impl.OrderClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 王佳晨
 */
@Component
@FeignClient(value = "service-order",fallback = OrderClientImpl.class)
public interface OrderClient {
    /**
     * 查询订单信息
     * @param memberId
     * @param id
     * @return
     */

    @GetMapping("/eduorder/order/isBuyCourse/{memberId}/{id}")
    public boolean isBuyCourse(@PathVariable("memberId") String memberId, @PathVariable("id") String id);

}
